<%@page import="com.dfhc.ISystemConstant"%>
<%@page import="com.dfhc.util.CryptoHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="/common/global.jsp"%>
	<%@ include file="/common/meta.jsp" %>
	<%@ include file="/common/include-base-styles.jsp" %>
	<link rel="stylesheet" href="<%=request.getContextPath()%>/js/common/plugins/timepicker.css">
	<title>请假审核查看</title>
	<script type="text/javascript" src="<%=request.getContextPath()%>/editor-app/libs/jquery_1.11.0/jquery.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/common/bootstrap.min.js"></script>	
	<!--增加日期，时间选择 -->
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/GX_js/WdatePicker.js"></script>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/GX_css/WdatePicker.css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/jqGrid/app-pub.js"></script>
<%-- 	<%@ include file="/jsp/include/web/jqGrid/global.jsp" %> --%>
	<script type="text/javascript">
	function completeProcess(){
		submitUpdateAjax("<%=request.getContextPath()%><%=CryptoHelper.encryptUrl(request,"/generalbusinessprocess/complete")%>",$(form).serialize(),"<%=request.getContextPath()%><%=CryptoHelper.encryptUrl(request,"/generalbusinessprocess/taskList")%>");
	}
	</script>
</head>
<body>
	<c:if test="${not empty message}">
		<div id="message" class="alert alert-success">${message}</div>
		<!-- 自动隐藏提示信息 -->
		<script type="text/javascript">
		setTimeout(function() {
			$('#message').hide('slow');
		}, 5000);
		</script>
	</c:if>
	<form action="<%=request.getContextPath()%><%=CryptoHelper.encryptUrl(request,"/generalbusinessprocess/complete")%>" class="form-horizontal" method="post" name="form" id="form">
	    <!-- 任务id-->
	    <input type="hidden" name="id" value="${bean.taskId}"> 
		<fieldset>
			<legend><small>请假审核</small></legend>
			<div id="messageBox" class="alert alert-error input-large controls" style="display:none">输入有误，请先更正。</div>
			<div class="control-group">
				<label for="loginName" class="control-label">请假类型:</label>
				<div class="controls">
				    ${bean.generalBusinessProcessVo.businessAttribute1} 					
				</div>
			</div>
			<div class="control-group">
				<label for="name" class="control-label">开始时间:</label>				
				${bean.generalBusinessProcessVo.businessAttribute2}									
			</div>
			<div class="control-group">
				<label for="plainPassword" class="control-label">结束时间:</label>
				${bean.generalBusinessProcessVo.businessAttribute3}
			</div>
			<div class="control-group">
				<label for="groupList" class="control-label">请假原因:</label>
				<div class="controls">
					<textarea readonly >${bean.generalBusinessProcessVo.businessAttribute4}</textarea>
				</div>
			</div>
		</fieldset>
	</form>
	<table>
	 <thead>
	  <tr>
	    <th>审核人</th>
	    <th>审核时间</th>
	    <th>审核状态</th>
		<th>审核意见</th>			    
	  </tr>
	 </thead>
	 <tbody>
	   <c:forEach items="${bean.auditVos}" var="item" varStatus="rowCounter"	begin='0' step='1'>
	   <tr>
	    <td>${item.auditName}</td>
	    <td>${item.auditTime}</td>
	    <td>${item.auditState}</td>
		<td>${item.auditOpinion}</td>
	   </tr>
	   </c:forEach>
	 </tbody>
	</table>
	<div class="form-actions">
			<button type="button" class="btn" onclick="completeProcess();" ><i class="icon-play"></i>提交</button>
	</div>	
</body>
</html>